package com.test;

public abstract class AbstractTea {
    protected Size size;//尺寸作为桥接属性存放在类中
    protected AbstractTea(Size size) {//构造确定size属性
        this.size = size;
    }

    public abstract String getType();//由子类实现决定
    public  String getSize() {
        return size.getSize();
    }
}
